<template>
  <div>
    Home
    <el-button type="primary" @click="onSubmit">Primary</el-button>
  </div>
</template>
<script>
import $http from "@/http/home.js";
export default {
  mounted() {},
  methods: {
    async onSubmit() {
      const res = await $http.getList({});
      console.log(res);
    },
  },
};
</script>
